package com.bs.sc.mgr.goods.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bs.sc.base.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
@Entity
@Table(name = "goods")
@EqualsAndHashCode(callSuper = true)
public class Goods extends BaseEntity {

	@NonNull
	@Column(name = "goods_name", nullable = false)
	private String goodsName;
	@Column(name = "img_url")
	private String imgUrl;
	@Column(name = "specification")
	private String specification; // 规格
	private String nature;// 属性
	private String description; // 描述
	private BigDecimal price;
	private int repertory; // 库存
	private String boutique; // 是否精品 Y：是 N：否
	private int classify; // 商品分类
}
